<div id="main_wrap">
	<div class="center_wrap clearfix">
        <h2 class="no_bottom no_top breadcrumb">
        	<a>{$lang845}</a>
        </h2>
		{include file="accountmenu.tpl"} 
		<div class="right col1">
            <div class="cat_box_full clearfix"> 
            	<p class="right results">{if $error eq ""}{$beginning} - {$ending} {$lang61} {$total} {$lang796}{/if}</p>
                <ul id="search_nav" class="clearfix">
                    <li class="current">{$showtitle}<span></span></li>
                </ul>
                <div class="cat_body_full clearfix">
                {if $error ne ""}
                {include file="show_error.tpl"}
                {/if}
                {if $showmessage ne ""}
                {include file="show_message.tpl"}
                {/if}
                  
                  <!-- LOOP START -->
                  {section name=i loop=$listaudios}
                  <div class="search_row">
                      <div class="aud_cont">
                          <span class="channel_thumb">
                            <a href="{$baseurl}/audios/{$listaudios[i].AUDIOID}/{insert name=get_seotitle_from_audioid assign=title audioid=$listaudios[i].AUDIOID}">
							{capture assign='player'}images/audiothumbs/{$listaudios[i].AUDIOID}-1{$listaudios[i].ext}{/capture} 
							{if $player|file_exists}
								<img alt="{$listaudios[i].title|stripslashes}" src="{$athumburl}/{$listaudios[i].AUDIOID}-1{$listaudios[i].ext}" />
							{else}
								<img alt="{$listaudios[i].title|stripslashes}" src="{$athumburl}/default.png" />
							{/if}
							{*<img alt="{$listaudios[i].title|stripslashes}" src="{$athumburl}/{$listaudios[i].AUDIOID}-1{$listaudios[i].ext}" /></a>*}
							
                          </span>
                      </div>
    
                      <h4 class="blue no_bottom"><a href="{$baseurl}/audios/{$listaudios[i].AUDIOID}/{insert name=get_seotitle_from_audioid assign=title audioid=$listaudios[i].AUDIOID}">{$listaudios[i].title|stripslashes}</a></h4>
                      <p class="no_top no_bottom pink">{$lang672}: <a href="{$baseurl}/{$listaudios[i].username|stripslashes}">{$listaudios[i].username|stripslashes}</a></p>
                      <div></div>
                      <p>{insert name=get_runtime value=var runtime=$listaudios[i].runtime} | {$listaudios[i].viewcount} {$lang60}{if $listaudios[i].allowcomments ne "0"} | {$listaudios[i].commentcount} {$lang63}{/if}</p>
                      {if $listaudios[i].allowratings ne "0"}
                      <p>
                        <nobr>
                        {insert name=get_rating_stars rating=$listaudios[i].rating}
                        </nobr><div style="clear:both"></div>
                        ({$listaudios[i].ratingcount} {if $listaudios[i].ratingcount eq "1"}{$lang65}{else}{$lang66}{/if})
                      </p>
                      {/if}
                      <p class="text_gray2 no_bottom no_top">
                          {$lang64} {$listaudios[i].time_added|date_format:"%b %e, %Y"}
                      </p>
                      <p>
                        <form id="deleteform" name="deleteform" action="{$baseurl}/myfavoriteaudios.php" method="post">
                    	<input type="hidden" name="deleteaudioid" value="{$listaudios[i].AUDIOID}">
                        <input type="submit" name="submitdelete" value="{$lang485}" />
                        </form>
                      </p>
                  </div>
                  {/section}
                  <!-- LOOP END -->
    
                </div>

                <div class="paginate">
                	{$pagelinks}
                    <p class="left">{if $error eq ""}{$beginning} - {$ending} {$lang61} {$total} {$lang796}{/if}</p>
                </div>
  			</div>
		</div>
    	<div class="clear"></div>
	</div>
</div>